package com.sishu.service.impl;

import com.sishu.mapper.DifficultyMapper;
import com.sishu.pojo.Difficulty;
import com.sishu.service.DifficultyService;
import com.sishu.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class DifficultyServiceimpl implements DifficultyService {


    @Resource
    private DifficultyMapper difficultyMapper;

    @Override
    public Result seedifficulty() {
        List<Difficulty> selectall = difficultyMapper.selectall();
        return new Result(200,"list",selectall,"查询成功",true);
    }
}
